package com.cljz.makepassenger.model.net.bean;

import cn.droidlover.xdroidmvp.net.IModel;

/**
 * Created by apple on 2017/4/5.
 */

public class ThirdLoginBean implements IModel {

    @Override
    public String toString() {
        return "ThirdLoginBean{" +
                "error_code=" + error_code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }

    /**
     * error_code : 0
     * msg : 登录成功
     * data : {"token":"MDAwMDAwMDAwMIHOc5h-hrdjsah2YoSpiq6wemmYhcu_lw","eid":"206666","user_logo":"","user_nickname":"sdf","user_sex":"1","birthday":"11989-09-09","user_phone":"13212121212","is_auth":"0","pub_welfare_val":"0.00","user_resume":"不想介绍","is_new":0}
     */

    private String error_code;
    private String msg;
    private DataBean data;

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    private String flag;

    public String getError_code() {
        return error_code;
    }

    public void setError_code(String error_code) {
        this.error_code = error_code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    @Override
    public boolean isNull() {
        return false;
    }

    @Override
    public boolean isAuthError() {
        return false;
    }

    @Override
    public boolean isBizError() {
        return false;
    }

    @Override
    public String getErrorMsg() {
        return null;
    }

    public static class DataBean {
        /**
         * token : MDAwMDAwMDAwMIHOc5h-hrdjsah2YoSpiq6wemmYhcu_lw
         * eid : 206666
         * user_logo :
         * user_nickname : sdf
         * user_sex : 1
         * birthday : 11989-09-09
         * user_phone : 13212121212
         * is_auth : 0
         * pub_welfare_val : 0.00
         * user_resume : 不想介绍
         * is_new : 0
         */

        private String token;
        private String user_logo;
        private String user_nickname;
        private String user_sex;
        private String birthday;
        private String user_phone;
        private String eid;
        private String age;

        public String getEid() {
            return eid;
        }

        public void setEid(String eid) {
            this.eid = eid;
        }

        public String getAge() {
            return age;
        }

        public void setAge(String age) {
            this.age = age;
        }


        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getUser_logo() {
            return user_logo;
        }

        public void setUser_logo(String user_logo) {
            this.user_logo = user_logo;
        }

        public String getUser_nickname() {
            return user_nickname;
        }

        public void setUser_nickname(String user_nickname) {
            this.user_nickname = user_nickname;
        }

        public String getUser_sex() {
            return user_sex;
        }

        public void setUser_sex(String user_sex) {
            this.user_sex = user_sex;
        }

        public String getBirthday() {
            return birthday;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public String getUser_phone() {
            return user_phone;
        }

        public void setUser_phone(String user_phone) {
            this.user_phone = user_phone;
        }


        @Override
        public String toString() {
            return "DataBean{" +
                    "token='" + token + '\'' +
                    ", user_logo='" + user_logo + '\'' +
                    ", user_nickname='" + user_nickname + '\'' +
                    ", user_sex='" + user_sex + '\'' +
                    ", birthday='" + birthday + '\'' +
                    ", user_phone='" + user_phone + '\'' +
                    '}';
        }
    }
}
